<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coffee-product-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'shopId'); ?>
		<?php echo $form->dropDownList($model,'shopId',CoffeeProduct::available_shops()); ?> 
		<?php echo $form->error($model,'shopId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'coffeeType'); ?>
		<?php echo $form->dropDownList($model,'coffeeType',CoffeeProduct::coffee_types()); ?>
		<?php echo $form->error($model,'coffeeType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'size'); ?>
		<?php echo $form->dropDownList($model,'size',CoffeeProduct::coffee_sizes()); ?>
		<?php echo $form->error($model,'size'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'milk'); ?>
		<?php echo $form->dropDownList($model,'milk',CoffeeProduct::coffee_milks()); ?>
		<?php echo $form->error($model,'milk'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price'); ?> 
		<?php echo $form->textField($model,'price'); ?> (in cents)
		<?php echo $form->error($model,'price'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->